﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Presentacion1._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style1
        {
        width: 547px;
    }
    </style>
<link href="Styles/Site.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Concursos
    </h2>
    <p>
        <div>
            <asp:Label ID="lblMensaje" runat="Server" ForeColor="red" EnableViewState="False"/>
            <table style="border:2px solid #cccccc;">
            <tr style="background-color:#507CD1;color:White;">
        <th colspan="3">Agregar Concursos</th>
  <tr>
  <td>
          Nombre:
        </td>
        <td class="style1">
          <asp:TextBox ID="txtNombre" runat="Server"></asp:TextBox>
        </td>
  </tr>
  <tr>
  
  <td>
          Edad Minima:
        </td>
        <td class="style1">
          <asp:TextBox ID="txtEdadMin" runat="Server"></asp:TextBox>
        </td></tr>
  <tr>
  <td>
  Edad Maxima:
        </td>
        <td class="style1">
          <asp:TextBox ID="txtEdadMax" runat="Server"></asp:TextBox>
        </td></tr>
  </tr>
  <tr>
  <td>
  Descripción:
        </td>
        <td class="style1">
          <asp:TextBox ID="txtDescripcion" runat="Server"></asp:TextBox>
        </td></tr>
  <tr>
    <td>
  Archivo de texto:
        </td>
        <td class="style1">
                <asp:FileUpload id="FileUploadControl" runat="server" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button runat="server" id="UploadButton" text="Upload" onclick="UploadButton_Click" />
                &nbsp;&nbsp;&nbsp;
                <asp:Label runat="server" id="StatusLabel" text="Upload status: " />
        </td></tr>
  <tr>
        <td></td>
        <td class="style1">
          <asp:Button ID="btnEnviar" runat="server" Text="Enviar" OnClick="Agregar" />
        </td>
        <td>
          <asp:Button ID="Loading" runat="server" Text="Mostrar" OnClick="gvMostrar" />
        </td>
        <td>
         </td>
      </tr>
      <tr>
        <td/>
      </tr>
      <tr>
        <td colspan="3" align=center>

            <asp:GridView ID="GridView" runat="server" 
                onselectedindexchanged="GridView_SelectedIndexChanged" OnRowCommand="GridView_RowCommand" OnRowDeleting="GridView_RowDeleting" OnRowUpdating="GridView_RowUpdating" DatakeyName="ConcursoId">

                <Columns>
                    <asp:ButtonField ButtonType="Button" CommandName="Delete" HeaderText="Borrar" 
                        ShowHeader="True" Text="Borrar" />
                    <asp:ButtonField ButtonType="Button" CommandName="Update" 
                        HeaderText="Modificar" ShowHeader="True" Text="Modificar" />
                </Columns>
            </asp:GridView>

        </td>
      </tr>
</table>
        </div>

    <p>
        
    </p>
</asp:Content>
